<!DOCTYPE html>
<html>
<head>
  <title>Helper for test_bug738396.html</title>
  <meta charset="utf-8">
</head>
<body>
  <!-- Test that the plugin sees "good" in each of these cases -->
  <div id="codebasevis">
    <applet codebase="good" codebase="bad" ></applet>

    <applet codebase="bad">
      <param name="codebase" value="good">
    </applet>

    <applet codebase="bad">
      <param name="codebase" value="stillbad">
      <param name="codebase" value="good">
    </applet>

    <applet>
      <param name="codebase" value="good">
    </applet>

    <object type="application/x-java-test" codebase="good" codebase="bad"></object>

    <object type="application/x-java-test" codebase="bad">
      <param name="codebase" value="good">
    </object>

    <object type="application/x-java-test" codebase="bad">
      <param name="codebase" value="stillbad">
      <param name="codebase" value="good">
    </object>

    <object type="application/x-java-test">
      <param name="codebase" value="good">
    </object>

    <embed type="application/x-java-test" codebase="good" codebase="bad">
  </div>
  <div id="blockedcodebase">
    <!-- Test that none of these are allowed to load -->
    <applet codebase="file:///" codebase="notused"></applet>

    <applet codebase="notused">
      <param name="codebase" value="file:///">
    </applet>

    <applet codebase="notused">
      <param name="codebase" value="notused">
      <param name="codebase" value="file:///">
    </applet>

    <applet>
      <param name="codebase" value="file:///">
    </applet>

    <object type="application/x-java-test" codebase="file:///" codebase="notused"></object>

    <object type="application/x-java-test" codebase="notused">
      <param name="codebase" value="file:///">
    </object>

    <object type="application/x-java-test" codebase="notused">
      <param name="codebase" value="notused">
      <param name="codebase" value="file:///">
    </object>

    <object type="application/x-java-test">
      <param name="codebase" value="file:///">
    </object>

    <embed type="application/x-java-test" codebase="file:///" codebase="notused">
  </div>
  <div id="nocodebase">
    <applet></applet>
    <object type="application/x-java-test"></object>
    <embed type="application/x-java-test">
  </div>
  <div id="emptycodebase">
    <applet codebase=""></applet>
    <object type="application/x-java-test" codebase=""></object>
    <embed type="application/x-java-test" codebase="">
  </div>
</body>
</html>
